package com.hk.sqlsession;

import com.hk.Executor.MyExecutor;
import com.hk.config.MyConfiguration;

public class MySqlSessionFactory {

	private  MyConfiguration myConfiguration;
	public MySqlSessionFactory(MyConfiguration myConfiguration){
		this.myConfiguration = myConfiguration;
	}
	public MyConfiguration getConfig() {
		return myConfiguration;
	}
	public SqlSession openSession() {
		MyExecutor myExecutor = new MyExecutor(myConfiguration);
		return new SqlSession(myConfiguration,myExecutor);
	}
}
